package com.example.ireader;

import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class BootActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().requestFeature(Window.FEATURE_NO_TITLE); //设置无标题
        setContentView(R.layout.activity_boot);
        /* 启动界面 */
        new Handler().postDelayed(new Runnable() {
            public void run() {
                /* Create an Intent that will start the Main WordPress Activity. */
                Intent mainIntent = new Intent(BootActivity.this, MainActivity.class);
                BootActivity.this.startActivity(mainIntent);
                BootActivity.this.finish();
            }
        }, 3000);
    }
}
